package com.linewow.xhyy.nihaonew.entity.user;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by LXR on 2016/8/30.
 */
public class Uinfo implements Parcelable {

    /**
     * uid : 161
     * gender : 2
     * nickname : Ana Sky
     * fans : 52
     * avatarutime : 1452767104
     * country : United_States
     * province :
     */

    public String uid;
    public String gender;
    public String nickname;
    public String fans;
    public String avatarutime;
    public String country;
    public String province;

    // 新增：详情界面里面的属性
    public String up;
    public String experience;
    public String goods;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.uid);
        dest.writeString(this.gender);
        dest.writeString(this.nickname);
        dest.writeString(this.fans);
        dest.writeString(this.avatarutime);
        dest.writeString(this.country);
        dest.writeString(this.province);
        dest.writeString(this.up);
        dest.writeString(this.experience);
        dest.writeString(this.goods);
    }

    public Uinfo() {
    }

    protected Uinfo(Parcel in) {
        this.uid = in.readString();
        this.gender = in.readString();
        this.nickname = in.readString();
        this.fans = in.readString();
        this.avatarutime = in.readString();
        this.country = in.readString();
        this.province = in.readString();
        this.up = in.readString();
        this.experience = in.readString();
        this.goods = in.readString();
    }

    public static final Parcelable.Creator<Uinfo> CREATOR = new Parcelable.Creator<Uinfo>() {
        @Override
        public Uinfo createFromParcel(Parcel source) {
            return new Uinfo(source);
        }

        @Override
        public Uinfo[] newArray(int size) {
            return new Uinfo[size];
        }
    };
}
